package com.zwps.biz.api.model.dto.dept;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import org.hibernate.validator.constraints.Length;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Schema(description = "修改部门")
@Getter
@Setter
@ToString
public class UpdateDeptDTO {

    /**
     * 上级部门ID
     */
    @Schema(description = "上级部门ID")
    private String parentId;

    /**
     * 部门名称
     */
    @Schema(description = "部门名称")
    @Length(min = 1, max = 100)
    private String deptName;

    /**
     * 排序
     */
    @Schema(description = "排序值")
    @Max(9999)
    @Min(-9999)
    private Integer sort;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

}
